package com.software.demo10;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("student333")
public class Student {

    @Value("2020012001")
    private String stuId;
    private String name;

    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
